<#if pg??>${pg.countHtml!}</#if>
<table class="list">
  <tr>
    <th width="4%">序号</th>
    <th width="7%">门店名称</th>
    <th width="7%">合同编号</th>
    <th width="8%">会员姓名</th>
    <th width="7%">会员卡号</th>
    <th width="12%">课程</th>
    <th width="8%">教练</th>
    <th width="6%">总课时</th>
    <th width="6%">预约课时</th>
    <th width="6%">核销课时</th>
    <th width="6%">剩余课时</th>
    <th width="8%">有效期起日</th>
    <th width="8%">有效期迄日</th>
    <th width="7%">合同状态</th>
    <th width="7%">销售员</th>
    <th width="5%">销售日期</th>
    <th width="5%">金额</th>
  </tr>
  <#if list??><#list list as c>
  <tr<#if c_index%2==1> class="line2"<#else> class="line1"</#if>>
    <td class="no">${c_index+1}</td>
    <td><@value type="shopName" key="${c.shopCode!}"/></td>
    <td>${c.contractCode!}</td>
    <td><a href="javascript:mbinfo('${c.memberCode!}');">${c.memberName!}</a></td>
    <td>${c.cardCode!}</td>
    <td><@value type="ptItemName" key="${c.ptCode!}"/></td>
    <td>${c.coachCode!}-<@value type="ptCoachName" key="${c.coachCode!}"/></td>
    <td>${c.quantity!}</td>
    <td>${c.bespeakQuantity!}</td>
    <td>${c.clearQuantity!}</td>
    <td>${c.quantity-c.clearQuantity}</td>
    <td>${c.beginTime!}</td>
    <td>${c.endTime!}</td>
    <td><#if c.status=1>正常<#else>已过期</#if></td>
    <td>${c.salesCode!}-<@value type="salesName" key="${c.salesCode!}"/><#if c.salesCode2?? && c.salesCode2?length!=0><br>${c.salesCode2!}-<@value type="salesName" key="${c.salesCode2!}"/></#if></td>
    <td>${c.saleDate!}</td>
    <td class="money">${c.factPrice!}</td>
  </tr>
  </#list></#if>
</table>
<#if pg??>${pg.pageHtml!}</#if>
